package com.xmfh.wemedia.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author admin
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dd_publish_line")
public class DdPublishLine implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源id
     */
    @TableField("resource_id")
    private Integer resourceId;

    /**
     * 类型 article-文章，album-相册，micro-微头条，video-视频，question-问答
     */
    @TableField("flag")
    private String flag;

    /**
     * 发布者
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 发布时间
     */
    @TableField("pub_time")
    private LocalDateTime pubTime;


}
